Previous issue was: <!-- m --><a class="postlink" href="http://vavoom.heretichexen.com/forums/viewtopic.php?t=1108">http://vavoom.heretichexen.com/forums/v ... php?t=1108</a><!-- m -->
I finally took closer look on what is happening when I am getting crash in this function.
I appears so that in->frac value is 0. This makes dist parameter be 0 too, since is being calculated as
dist = aim_range * in->frac;
or
dist = aim_range2d * in->frac;
dist value itself is used in such expressions as
thingtopslope = (th.Origin.z + th.Height - aim_z) / dist;
- that makes division on 0.
Currently I am not sure what is an obligatory condition for this. I am getting this behavior on one exact place on my map, but there's nothing particuluary special in it.